<{include file="header.html"}>
<script src="themes/js/jquery.js" type="text/javascript"></script>
<script src="themes/js/jquery.validate.js" type="text/javascript"></script>

<!-- for styling the form -->
<script src="themes/js/cmxforms.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$("#commentForm").validate();
});
$(document).ready(function() {
	$("#commentFor").validate();
});
</script>
<{if $act==http}>
<div  class="left">
<span>HTTP检测</span>
<form method="post"  action="<{spUrl c=main a=insert}>" class="cmxform" id="commentForm">
	<label>网站:</label><input type="text" name="title"><br /><br />	
	<label>请添加http://</label><br>	
	<label for="curl">网址:</label><input type="text" name="domain" id="curl" class="url"><br><br />	
	<label>分类</label>
	<select name="groupid">
		<{foreach item=vs from=$group key=enname}>
		<option value ="<{$vs.groupid}>"><{$vs.name}></option>
		<{/foreach}>
	</select><br /><br />	
	<label>激活:</label>是<input type="radio" name="active" value="1">
						否<input type="radio" name="active" value="0"><br />	<br />					

	<label>检查时间间隔</label><br />
		<{foreach item=vo from=$value key=enname}>
		<label><{$vo}>分钟</label><input type="radio" name="intervals" value="<{$vo}>"><br />
		<{/foreach}>
		
		<input type="text" name="mclass" value="http" style="display:none">
		<input class="submit" type="submit" value="增加">
</form>
</div>

<{else}>
<div  class="left">
<span>PING检测</span>
<form method="post" action="<{spUrl c=main a=insert}>" class="cmxfor" id="commentFor"">
	<label>网站:</label><input type="text" name="title"><br /><br />
	<label>请<strong>不要</strong>添加http://</label><br>
	<label for="curl">网址:</label><input type="text" name="domain" id="cur" class="url"><br><br />
	<label>分类</label>
	<select name="groupid">
		<{foreach item=vs from=$group key=enname}>
		<option value ="<{$vs.groupid}>"><{$vs.name}></option>
		<{/foreach}>
	</select><br /><br />
	<label>激活:</label>是<input type="radio" name="active" value="1">
						否<input type="radio" name="active" value="0"><br /><br />

	<label>检查时间间隔</label><br />
		<{foreach item=vo from=$value key=enname}> 
		<label><{$vo}>分钟</label><input type="radio" name="intervals" value="<{$vo}>"><br />
		<{/foreach}> 
		<input type="text" name="mclass" value="ping"style="display: none">
		<input class="submit" type="submit" value="增加">
</form>
</div>
<{/if}>
<div class="clear"></div>
<{include file="footer.html"}>
